<?php 
	$items = 130;
	$cols = 9;
	$rows = ceil($items / $cols);
	$num = 1;
	
?>
<table border="1" align="center" width="90%">
<?php for($i=1 ; $i<=$rows ; $i++) {
	$color = ($i%2)==0 ? 'pink':'lightgreen';	
?>
	<tr style="background-color:<?=$color?>">
	
	<?php for($j=1 ; $j<=$cols ;$j++) {
		if($num<=$items){
	?>
		<td><img src="Chrysanthemum.jpg" height="90" width="120"> <!--<?=$num++?>--></td>
	<?php 
		} else {//end if()
		echo '<td>&nbsp;</td>';
		}
	} // end inner for()
	?>	
	</tr>
<?php }//end for()?>
</table>

